<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>JSDoc: Namespace: HomeCtrl</title>
    
    <script src="scripts/prettify/prettify.js"> </script>
    <script src="scripts/prettify/lang-css.js"> </script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">
    
    <h1 class="page-title">Namespace: HomeCtrl</h1>
    
    



<section>
    
<header>
    <h2>
        <span class="ancestors"><a href="angular_module.demoApp.html">.demoApp</a><a href="angular_module.demoApp.demoControllers.html">.demoControllers</a>.</span>
    
    HomeCtrl
    </h2>
    
</header>  

<article>
    <div class="container-overview">
    
    
    
        
            <div class="description">主页的控制器</div>
        
        
        
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="controllers.js.html">controllers.js</a>, <a href="controllers.js.html#line8">line 8</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

        
        
    
    </div>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        <h3 class="subsection-title">Methods</h3>
        
        <dl>
            
<dt>
    <h4 class="name" id="$scope.setScript"><span class="type-signature">&lt;static> </span>$scope.setScript<span class="signature">(urls)</span><span class="type-signature"></span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        动态创建script标签，用于设置其他域cookie。
    </div>
    

    
    
    
    
    
        <h5>Parameters:</h5>
        

<table class="params">
    <thead>
	<tr>
		
		<th>Name</th>
		
		
		<th>Type</th>
		
		
		
		
		
		<th class="last">Description</th>
	</tr>
	</thead>
	
	<tbody>
	
	
        <tr>
            
                <td class="name"><code>urls</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>
            
            
            
            
            
            <td class="description last">设置域的地址</td>
        </tr>
	
	
	</tbody>
</table>
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="controllers.js.html">controllers.js</a>, <a href="controllers.js.html#line36">line 36</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    
    
</dd>

        
            
<dt>
    <h4 class="name" id="HomeCtrlInjectConstructor"><span class="type-signature">&lt;static> </span>HomeCtrlInjectConstructor<span class="signature">($scope, $cookies, $cookieStore, $http, $rootScope)</span><span class="type-signature"></span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        初始化控制器HomeCtrl
    </div>
    

    
    
    
    
    
        <h5>Parameters:</h5>
        

<table class="params">
    <thead>
	<tr>
		
		<th>Name</th>
		
		
		<th>Type</th>
		
		
		
		
		
		<th class="last">Description</th>
	</tr>
	</thead>
	
	<tbody>
	
	
        <tr>
            
                <td class="name"><code>$scope</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">$scope</span>


            
            </td>
            
            
            
            
            
            <td class="description last">注入局部作用域</td>
        </tr>
	
	
	
        <tr>
            
                <td class="name"><code>$cookies</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">$cookies</span>


            
            </td>
            
            
            
            
            
            <td class="description last">注入cookies</td>
        </tr>
	
	
	
        <tr>
            
                <td class="name"><code>$cookieStore</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">$cookieStore</span>


            
            </td>
            
            
            
            
            
            <td class="description last">注入cookieStore</td>
        </tr>
	
	
	
        <tr>
            
                <td class="name"><code>$http</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">$http</span>


            
            </td>
            
            
            
            
            
            <td class="description last">注入http用于进行jsonp数据获取</td>
        </tr>
	
	
	
        <tr>
            
                <td class="name"><code>$rootScope</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">$rootScope</span>


            
            </td>
            
            
            
            
            
            <td class="description last">注入全局作用域，用于获获取登陆页面地址。</td>
        </tr>
	
	
	</tbody>
</table>
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="controllers.js.html">controllers.js</a>, <a href="controllers.js.html#line14">line 14</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    
    
</dd>

        </dl>
    
    
    
    
    
</article>

</section>  




</div>

<nav>
    <h2><a href="index.html">Index</a></h2><h3>Namespaces</h3><ul><li><a href="angular_module.demoApp.html">demoApp</a></li><li><a href="angular_module.demoApp.demoControllers.html">demoControllers</a></li><li><a href="angular_module.demoApp.demoControllers.DeviceList.html">DeviceList</a></li><li><a href="angular_module.demoApp.demoControllers.HomeCtrl.html">HomeCtrl</a></li><li><a href="angular_module.demoApp.demoDirectives.html">demoDirectives</a></li><li><a href="angular_module.demoApp.demoDirectives.header.html">header</a></li><li><a href="angular_module.demoApp.demoDirectives.NavDirectiveCtrl.html">NavDirectiveCtrl</a></li></ul><h3>Global</h3><ul><li><a href="global.html#karamControllers">karamControllers</a></li></ul>
</nav>

<br clear="both">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Fri Jun 12 2015 13:23:05 GMT+0800 (CST)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>